
using UnityEngine;

public class TowerBossAttack2 : EnemyAttack
{
    [Header("动画")]
    public Animator animator;
    private void Update()
    {
        //移动
        Move();
        //计算销毁
        UpdateDesTimer();
    }

    //碰撞伤害
    private void OnTriggerEnter2D(Collider2D collision)
    {
        if(collision.GetComponent<Player>()!=null)
        {
            AttackPlayer();
            //生成特效
            animator.SetTrigger("Die");
        }
    }
}
